

  ========= 测试开始 : 20210604_160057 =========



>>> cases\API\Login_API_Test.py

* API_1001  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 正确，密码 ****************** 正确
预期结果:
{
    "msg": "请求成功",
    "code": 0,
    "data": {
        "token": ""
    },
    "type": null,
    "status": "success"
}
测试结果：
{
    "status": "success",
    "msg": "获取token成功！",
    "code": 0,
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg4MDA1NCwidXNlcklkIjoieXp5YWRtaW4ifQ.t-sJSbFJFuTP4PNtf4-PipkdioiWGN1n3LgArbgtO0w"
    }
}

对比结果：
{'"data":"token":""', '"data":"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjg4MDA1NCwidXNlcklkIjoieXp5YWRtaW4ifQ.t-sJSbFJFuTP4PNtf4-PipkdioiWGN1n3LgArbgtO0w"', '"msg":"获取token成功！"', '"msg":"请求成功"', '"type":null'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 22, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1002  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 正确，密码 “'?cha查囓あØŌД₪∝⑧┿●﹌ㄝ   2333” 错误
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"type":null', '"msg":"账号密码不匹配！"', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 41, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1003  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名错误，密码正确
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"type":null', '"msg":"账号密码不匹配！"', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 60, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1004  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：用户名 ****************** 错误，密码 ****************** 错误
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"type":null', '"msg":"账号密码不匹配！"', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 78, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1005  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有用户名 ******************
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"密码不能为空！"', '"type":null', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 96, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1006  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有密码 ******************
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号不能为空！"', '"type":null', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 115, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1007  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有用户名 ******************&****************** 
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"密码不能为空！"', '"type":null', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 134, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1008  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
前置条件：只有密码 ******************&******************
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"账号不能为空！"', '"type":null', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 152, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1009  -  2021-06-04 16:00:57

  [ case execution steps ]
权限接口：用户，密码，token 测试   #1
'userAccount'为空, 'password'为空
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": null,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "false",
    "msg": "org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.zkxz.common.vo.ResultVo com.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject,javax.servlet.http.HttpServletResponse,javax.servlet.http.HttpServletRequest)",
    "code": 500,
    "data": null
}

对比结果：
{'"msg":"org.springframework.http.converter.HttpMessageNotReadableException:Requiredrequestbodyismissing:publiccom.zkxz.common.vo.ResultVocom.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject', 'javax.servlet.http.HttpServletResponse', '"code":1', '"code":500', 'javax.servlet.http.HttpServletRequest)"', '"type":null', '"msg":"请求失败"'}

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 171, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



  ========= 测试结束 : 20210604_160057 =========


  耗时    : 0.608 秒


  用例数量 : 9

  通过 : 0

  失败 : 9

  异常 : 0

  套件初始化失败 : 0

  套件清除  失败 : 0

  用例初始化失败 : 0

  用例清除  失败 : 0
